@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>角色管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="roleName" name="角色名称" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Role.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="roleTableToolbar" role="group">
                                @if(shiro.hasPermission("sys:role:add")){
									<#button name="添加" icon="fa-plus" clickFun="Role.openAddRole()" />
								@}
                                
                                @if(shiro.hasPermission("sys:role:edit")){
									 <#button name="修改" icon="fa-edit" clickFun="Role.openChangeRole()" space="true"/>
								@}
                               
                                @if(shiro.hasPermission("sys:role:delete")){
									<#button name="删除" icon="fa-remove" clickFun="Role.delRole()" space="true"/>
								@}
                           
                                @if(shiro.hasPermission("sys:menu:auth")){
									<#button name="权限配置" icon="fa-user-secret" clickFun="Role.assign()" space="true"/>
								@}
                           
                           
                                
                           
                        </div>
                        <#table id="roleTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/modular/system/role/role.js"></script>
@}
